/*
 ============================================================================
 Name        : Request.java
 Author      : Dallas Rosson, Joshua Warner, Tyson Lewis, Ken Norton
 Team        : Bitwise Guys
 ============================================================================
 */

package backend;

/**
 * Request.java
 * 
 * Simulates the Requests for hardware actions.
 * 
 * @author BitWiseGuys Dallas Rosson, Joshua Warner, Tyson Lewis, Ken Norton
 * @version 1.0, 5/29/2012
 */
public class Request {
	private final int STEP_NUMBER;
	private final IO.IOType REQUEST_TYPE;
	
	/**
	 * create a Request with the step that it is executed and 
	 * what IO device it is calling.
	 * @param step within the program where this request is found
	 * @param req the IO device that this request calls.
	 */
	public Request(int step, IO.IOType req){
		STEP_NUMBER = step;
		REQUEST_TYPE = req;
	}
	
	/**
	 * get the step number where this request is found.
	 * @return the step number.
	 */
	public int getStep(){
		return STEP_NUMBER;
	}
	
	/**
	 * get the IO type that this request calls.
	 * @return the IO type.
	 */
	public IO.IOType getType(){
		return REQUEST_TYPE;
	}
}
